package models;

import java.util.Random;

public final class Bot extends Player {
	private int zetony;
	private IStrategy strategy;
	
    public Bot(String nazwa, int zetony){
	this.nazwa = nazwa;
        this.zetony = zetony;
        this.strategy = new PassiveStrategy();
    }
    
    protected boolean czyGotowy(){
        return false;
    }
    
    public int getZetony(){
        return zetony;
    }
    
    public void setZetony(int zetony){
        this.zetony = zetony;
    }
    
    public Bet makeBet(Handy hand, int pula, int obecnaStawka, boolean czyAllIn, boolean czyBetted){
        return strategy.makeBet(hand, pula, obecnaStawka, czyAllIn, czyBetted, zetony);
    }
    
    public boolean [] wymien(Handy hand){
	    Random rand = new Random();
	    boolean tab[] = new boolean[5];
	    for(int i = 0; i < 5; ++i){
	        int czyWymien = rand.nextInt(2);
	        if(czyWymien == 1){
	            tab[i] = true;
	        }
	        else{
	            tab[i] = false;
	        }
	    }
		return tab;
	}
    
    public void onReceive(Object msg){
    	
    }
	
}
